package org.edu.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * lzh
 * 银行信息
 * TmBankinfo entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tm_bankinfo")
public class TmBankinfo implements java.io.Serializable {

	// Fields
	/**银行id*/
	private Integer id;
	/**纳税人识别码*/
	private String pcode;
	/**银行帐户帐号*/
	private String account;
	/**开户行*/
	private String bank;
	/**纳税人(名称)姓名*/
	private String taxplayer;
	/**开户时间*/
	private Date startdate;
	/**办理人员*/
	private String manager;
	/**银行地址*/
	private String bankaddress;
	/**银行联系方式*/
	private String phone;

	// Constructors

	/** default constructor */
	public TmBankinfo() {
	}

	/** full constructor */
	public TmBankinfo(String pcode, String account, String bank,
			String taxplayer, Date startdate, String manager,
			String bankaddress, String phone) {
		this.pcode = pcode;
		this.account = account;
		this.bank = bank;
		this.taxplayer = taxplayer;
		this.startdate = startdate;
		this.manager = manager;
		this.bankaddress = bankaddress;
		this.phone = phone;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "pcode", nullable = false, length = 20)
	public String getPcode() {
		return this.pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}

	@Column(name = "account", nullable = false, length = 20)
	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name = "bank", nullable = false, length = 20)
	public String getBank() {
		return this.bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	@Column(name = "taxplayer", nullable = false, length = 20)
	public String getTaxplayer() {
		return this.taxplayer;
	}

	public void setTaxplayer(String taxplayer) {
		this.taxplayer = taxplayer;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "startdate", nullable = false, length = 10)
	public Date getStartdate() {
		return this.startdate;
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	@Column(name = "manager", nullable = false, length = 20)
	public String getManager() {
		return this.manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	@Column(name = "bankaddress", nullable = false, length = 100)
	public String getBankaddress() {
		return this.bankaddress;
	}

	public void setBankaddress(String bankaddress) {
		this.bankaddress = bankaddress;
	}

	@Column(name = "phone", nullable = false, length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}